<template>
	<view class="borrow">
		<view class="borrow-card">
			<view class="borrow-card-title">
				生意贷
			</view>
			<view class="borrow-content">
				<view class="borrow-text">
					可借额度（元）
				</view>
				<view class="borrow-price">
					23,757.86
				</view>
				<view class="borrow-text">
					年化利率15%
				</view>
			</view>
			<button class="form-btn" form-type="submit">借一笔</button>
			<view class="borrow-text">
				由银行提供金融服务
			</view>
		</view>
		<view class="borrow-main" @click="toDetail">
			<view class="borrow-main-title">
				<view class="borrow-main-text">
					2月10日应还（元）
				</view>
				<view class="borrow-main-btn">
					距离还款日26天
				</view>
			</view>
			<view class="borrow-main-price">
				<view class="">
					300.66
				</view>
				<view class="">
					<image class="icon-img" src="../../admin/images/arrowright.png" mode=""></image>
				</view>
			</view>
			<view class="borrow-main-bottom">
				还款日7：00起将从已绑定卡/余额自动扣款
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			}
		},
		methods:{
			toDetail(){
				uni.navigateTo({
					url:'./money_detail'
				})
			}
		}
	}
</script>

<style scoped>
	.borrow {
		padding: 20rpx;
	}

	.borrow-card {
		background-color: #BA1F25;
		color: #fff;
		border-radius: 20rpx;
		padding: 20rpx;
	}

	.borrow-content {
		text-align: center;
		margin-top: 40rpx;
	}

	.borrow-text {
		text-align: center;
		margin-bottom: 10rpx;
	}

	.borrow-price {
		font-weight: bold;
		font-size: 52rpx;
	}

	.form-btn {
		width: 86%;
		height: 88rpx;
		line-height: 88rpx;
		border-radius: 48rpx;
		margin-top: 40rpx;
		margin-bottom: 20rpx;
		font-weight: 500;
		background-color: #fff;
	}

	.borrow-main {
		background-color: #fff;
		border-radius: 20rpx;
		padding: 20rpx;
		margin-top: 20rpx;
	}

	.borrow-main-title {
		display: flex;
		align-items: center;
	}

	.borrow-main-btn {
		border: 1px solid #dfdede;
		background-color: #dfdede;
		color: #a9a6a6;
		border-radius: 10rpx;
		padding: 6rpx;
		font-size: 24rpx;
	}

	.borrow-main-price {
		font-weight: bold;
		font-size: 40rpx;
		margin: 10rpx 0;
		display: flex;
		align-items: center;
		justify-content: space-between;
	}

	.borrow-main-bottom {
		color: #9b9b9b;
	}

	.icon-img {
		width: 40rpx;
		height: 40rpx;
	}
</style>
